/* 过滤设备 */
import {request} from "@/utils/request";

/* 电表 详情 */
export function electricMeterDetail(data, callback) {
    return request({
        url: "/electric_power/electric_meter_detail",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 电耗 更改 */
export function electricityConsumptionChange(data, callback) {
    return request({
        url: "/electric_power/electricity_consumption_change",
        method: "post",
        data,
        isYarn: true,
        type: "json"
    }, callback);
}

/* 电耗 分页列表 */
export function electricityConsumptionList(data, callback) {
    return request({
        url: "/electric_power/electricity_consumption_list",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 电表 列表 */
export function loadElectricMeterData(data, callback) {
    return request({
        url: "/electric_power/electric_meter_list",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 水表 详情 */
export function waterMeterDetail(data, callback) {
    return request({
        url: "/water/water_meter_detail",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 水耗 更改 */
export function waterConsumptionChange(data, callback) {
    return request({
        url: "/water/water_consumption_change",
        method: "post",
        data,
        isYarn: true,
        type: "json"
    }, callback);
}

/* 水耗 分页列表 */
export function waterConsumptionList(data, callback) {
    return request({
        url: "/water/water_consumption_list",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 水表 列表 */
export function loadWaterMeterData(data, callback) {
    return request({
        url: "/water/water_meter_list",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}


/* 蒸汽表 详情 */
export function streamGaugeDetail(data, callback) {
    return request({
        url: "/stream/stream_gauge_detail",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 蒸汽耗 更改 */
export function streamConsumptionChange(data, callback) {
    return request({
        url: "/stream/stream_consumption_change",
        method: "post",
        data,
        isYarn: true,
        type: "json"
    }, callback);
}

/* 蒸汽耗 分页列表 */
export function streamConsumptionList(data, callback) {
    return request({
        url: "/stream/stream_consumption_list",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 蒸汽表 列表 */
export function loadStreamGaugeData(data, callback) {
    return request({
        url: "/stream/stream_gauge_list",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}


/* 消防设备 列表 */
export function filterFireSafetyEquipmentData(data, callback) {
    return request({
        url: "/fire_safe/filter_equipment",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 消防设备 单个 */
export function loadFireSafetyEquipmentDetail(data, callback) {
    return request({
        url: "/fire_safe/equipment_detail",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 消防安全巡检 */
export function fireSafetyInspection(data, callback) {
    return request({
        url: "/fire_safe/fire_safety_inspection",
        method: "post",
        data,
        isYarn: true,
        type: "json"
    }, callback);
}

/* 消防巡检 列表 */
export function loadFireSafetyInspectionData(data, callback) {
    return request({
        url: "/fire_safe/fire_safety_inspection_list",
        method: "get",
        data,
        isYarn: true,
        isFile: true,
        isEmpty: true,
    }, callback);
}

/* 设备维保 设备分页列表 */
/*export function loadEquipmentData(data, callback) {
    return request({
        url: "/equipment/list",
        method: "get",
        data,
        isYarn: true,
        isFile: true,
    }, callback);
}*/

/* 设备维保 设备分页列表 */
export function filterEquipmentData(data, callback) {
    return request({
        url: "/equipment/filter",
        method: "get",
        data,
        isYarn: true,
        isFile: true,
    }, callback);
}

/* 设备维保 设备详情 */
export function loadEquipmentDetail(data, callback) {
    return request({
        url: "/equipment/detail",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}

/* 设备维保 设备维保执行 */
export function changeEquipmentMaintenance(data, callback) {
    return request({
        url: "/equipment/maintenance",
        method: "post",
        data,
        isYarn: true,
        type: "json"
    }, callback);
}

/* 设备维保 设备维保执行分页列表 */
export function loadEquipmentMaintenanceData(data, callback) {
    return request({
        url: "/equipment/maintenance_list",
        method: "get",
        data,
        isYarn: true,
        isFile: true,
        isEmpty: true,
    }, callback);
}

/* 设备维保 设备维保执行详情 */
export function loadEquipmentMaintenanceDetail(data, callback) {
    return request({
        url: "/equipment/maintenance_detail",
        method: "get",
        data,
        isYarn: true,
    }, callback);
}